<!--
	此示例下载自 https://echarts.apache.org/examples/zh/editor.html?c=line-stack
-->
<!DOCTYPE html>
<html lang="en" style="height: 100%">
<head>
    <meta charset="utf-8">
</head>
<body style="height: 100%; margin: 0">
<div id="container" style="height: 100%"></div>


<script type="text/javascript" src="https://registry.npmmirror.com/echarts/5.5.0/files/dist/echarts.min.js"></script>
<!-- Uncomment this line if you want to dataTool extension
<script type="text/javascript" src="https://registry.npmmirror.com/echarts/5.5.0/files/dist/extension/dataTool.min.js"></script>
-->
<!-- Uncomment this line if you want to use gl extension
<script type="text/javascript" src="https://registry.npmmirror.com/echarts-gl/2/files/dist/echarts-gl.min.js"></script>
-->
<!-- Uncomment this line if you want to echarts-stat extension
<script type="text/javascript" src="https://registry.npmmirror.com/echarts-stat/latest/files/dist/ecStat.min.js"></script>
-->
<!-- Uncomment this line if you want to use map
<script type="text/javascript" src="https://registry.npmmirror.com/echarts/4.9.0/files/map/js/china.js"></script>
<script type="text/javascript" src="https://registry.npmmirror.com/echarts/4.9.0/files/map/js/world.js"></script>
-->
<!-- Uncomment these two lines if you want to use bmap extension
<script type="text/javascript" src="https://api.map.baidu.com/api?v=3.0&ak=YOUR_API_KEY"></script>
<script type="text/javascript" src="https://registry.npmmirror.com/echarts/5.5.0/files/dist/extension/bmap.min.js"></script>
-->

<script type="text/javascript">
    var dom = document.getElementById('container');
    var myChart = echarts.init(dom, null, {
        renderer: 'canvas',
        useDirtyRect: false
    });
    var app = {};

    var option;

    option = {
        title: {
            text: 'Stacked Line'
        },
        tooltip: {
            trigger: 'axis'
        },
        legend: {
            // left: 'left',
            data: [ '2024','2023', '2022', '2021', '2020', '05', '06', '07', '08', '09', '10', '11', '12']
        },
        grid: {
            // left: '3%',
            // right: '4%',
            // bottom: '3%',
            // containLabel: true
        },
        toolbox: {
            feature: {
                saveAsImage: {}
            }
        },
        xAxis: {
            type: 'category',
            name: '红',
            // boundaryGap: false,
            data: ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35']
        },
        yAxis: {
            // type: 'value'
            name: '蓝',
            type: 'value',
            min: 0,
            max: 40,
            minorTick: {
                show: true,
                splitNumber: 5
            }
            ,
            minorSplitLine: {
                show: true
            }
        },
        series: [
            /*{
                name: '00',
                type: 'line',

                data: [380,362,363,329,368,354,378,333,332,340,368,329,337,340,327,300,340,344,375,354,331,390,356,326,366,346,354,345,438,423,381,417,434,391,434]
            },*/
            {
                name: '2024',
                type: 'line',

                data: [3,3,4,5,4,3,3,5,3,1,2,4,1,1,3,3,2,3,5,3,2,2,1,2,5,5,7,3,3,3,2,2,1,3,3]
            },{
                name: '2023',
                type: 'line',

                data: [16,26,19,20,22,30,29,28,23,13,25,20,23,15,23,22,16,21,19,18,19,23,19,20,30,20,22,21,18,28,20,26,19,20,17]
            },{
                name: '2022',
                type: 'line',

                data: [29,30,17,27,27,18,25,16,19,27,25,18,17,16,22,24,27,19,26,25,21,22,18,15,24,18,17,20,19,21,23,19,19,14,26]
            },{
                name: '2021',
                type: 'line',

                data: [22,28,19,18,18,20,20,21,19,18,24,16,16,26,16,18,28,16,28,26,22,16,21,11,25,27,21,23,28,25,17,18,26,26,27]
            },{
                name: '2020',
                type: 'line',

                data: [29,20,23,22,16,11,19,19,19,17,27,19,14,17,23,15,17,14,13,24,17,25,20,18,15,25,18,25,12,21,15,21,15,23,22]
            }

        ]
    };

    if (option && typeof option === 'object') {
        myChart.setOption(option);
    }

    window.addEventListener('resize', myChart.resize);
</script>
</body>
</html>